/**
 * aboutme 路由模块
 */

// 导入 express 模块
const express = require('express')
// 导入 expressJoi 验证参数是否符合验证规则模块
const expressJoi = require('@escook/express-joi')
// 导入验证规则
const { upAbout_schema } = require('../schema/aboutme')
// 导入路由对应函数
const { updateAboutme, getAboutme } = require('../router_handler/aboutme_handler')

// 实例化路由对象
const router = express.Router()

// 修改关于我信息路由
router.post('/upaboutme', expressJoi(upAbout_schema), updateAboutme)

// 获取关于我信息路由
router.get('/getaboutme', getAboutme)

// 向外暴露 实例化路由对象
module.exports = router